Sorts in parallel the elements of a sequence in descending order according to a key.
Namespace:
System.Linq
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function OrderByDescending(Of TSource, TKey) ( _
source As ParallelQuery(Of TSource), _
keySelector As Func(Of TSource, TKey) _
) As OrderedParallelQuery(Of TSource) |
Parameters
- source
- Type: System.Linq..::.ParallelQuery<(Of <(TSource>)>)
A sequence of values to order.
- keySelector
- Type: System..::.Func<(Of <(TSource, TKey>)>)
A function to extract a key from an element.
Type Parameters
- TSource
- The type of elements of source.
- TKey
- The type of the key returned by keySelector.
Return Value
An OrderedParallelQuery{TSource} whose elements are sorted
descending according to a key.
Remarks
Exceptions
Exception | Condition |
---|
System..::.ArgumentNullException |
source or keySelector is a null reference (Nothing in Visual Basic).
|
See Also